import pickle

data = [{'sid':'a1001','name':'张大山','scro':92},
        {'sid':'a1002','name':'李晓丽','scro':82},
		{'sid':'a1003','name':'赵志勇','scro':97}]

s_file = open('dic_data.dat', 'wb')
pickle.dump(data, s_file)
s_file.close()

r_file = open('dic_data.dat', 'rb')
data2 = pickle.load(r_file)

print('学号:', '\t姓名:', '\t成绩:')
for i in data2:
	sid = i['sid']
	name = i['name']
	scro = i['scro']
	print(sid, '\t',name, '\t',scro)
r_file.close()